package org.example.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.domain.User;

import java.util.Collection;
import java.util.List;

@Mapper
public interface UserDao {
    int importAll(List<User> users);
    User searchById(int id);
    int truncateAll();
    int searchCountByUsername(String username);
    int searchCountByEmail(String email);
    int saveOne(User user);
    int activationUser(int id);
    User search(int id,String username);
    int updateHeaderUrlById(int userId,String headerUrl);
    int updatePasswordById(int id, String password);
    User searchByUsername(String username);
    List<User> selectUsers(Collection<Object> ids,int page,int limit);
}
